//
//  BlockActionSheet.h
//  WeiboFun
//
//  Created by luo danal on 8/16/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BlockActionSheet : UIActionSheet <UIActionSheetDelegate>{
    void(^_clickBlock)(int, BlockActionSheet*);
    void(^_dismissBlock)(int, BlockActionSheet*);
}

- (id)initWithTitle:(NSString *)title 
  cancelButtonTitle:(NSString *)cancelButtonTitle 
destructiveButtonTitle:(NSString *)destructiveButtonTitle 
  otherButtonTitles:(NSString *)otherButtonTitles, ...;

- (id)initWithTitle:(NSString *)title
    buttonTitleList:(NSArray *)otherButtonTitles
  cancelButtonTitle:(NSString *)cancelButtonTitle
destructiveButtonTitle:(NSString *)destructiveButtonTitle;

- (void)setClickBlock:(void(^)(int buttonIndex, BlockActionSheet *sheet))block;
- (void)setDismissBlock:(void(^)(int buttonIndex, BlockActionSheet *sheet))block;

@end
